package online.cmagic.actionType.chain;

/**
 * @author wsc
 * @date: 2020年04月15日 17:00
 * @since JDK 1.8
 */
public abstract class Leader {

    protected Leader nextLeader;

    protected String name;

    public Leader(String name) {
        this.name = name;
    }

    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }

    public abstract void process(LeaveRequest request);
}
